﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="details.aspx.vb" Inherits="DusanProject.details1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1" >

    <ItemTemplate>
    <h2><%# Eval("TorontoPictureName") %></h2>

    <br />
    <h2>Picture owner: <%# Eval("PictureOwner") %></h2>

    <br>

    <h3>Year: <%# Eval("YearTaken")%>, Location: <%# Eval("Location")%></h3>

    <br>

    <h3><%# Eval("Description")%></h3>

    <br>

    <%# Eval("Details")%>

    <br />
    <br />
    <br />


    <img alt="<%#Eval("TorontoPictureName")%>" src="<%#Eval("Picture")%>"/>
    
    </ItemTemplate>

    </asp:Repeater>


    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:dbDusanCS %>" 
        ProviderName="<%$ ConnectionStrings:dbDusanCS.ProviderName %>" 
        SelectCommand="SELECT [PictureOwner], [TorontoPictureName], [Description], [Details], [Location], [YearTaken], [Picture] FROM [TorontoPictures] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>


    <br />
    <br />
    <br />
    <br />
    <br />
    <br />

</asp:Content>
